import md5 from 'md5'

export function encrypt(text: string): string {
	return text
}

export function decrypt(text: string): string {
	return text
}

export function encryptRegisterCode(code: string, ts: number) {
	let res = `${code}${ts}`
	const times = (Number(code) % 50) + 10
	for (let i = 0; i < times; i++) {
		res = md5(res)
	}
	return res
}
